package com.bestcem.xm.deliver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @TableName ds_deliver_customdeliver
 */
@TableName(value = "ds_deliver_customdeliver")
@Data
@EqualsAndHashCode(callSuper = true)
public class DeliverCustomDeliver extends BaseEntity2 {
    @TableId(value = "id")
    private String id;

    /**
     * 组织ID
     */
    @TableField(value = "org_id")
    private String orgId;

    /**
     * 问卷ID
     */
    @TableField(value = "survey_id")
    private String surveyId;

    /**
     * 投放ID
     */
    @TableField(value = "deliver_id")
    private String deliverId;

    /**
     * 投放组ID
     */
    @TableField(value = "deliver_group_id")
    private String deliverGroupId;

    /**
     * 限制提交次数
     */
    @TableField(value = "check_submit")
    private Integer checkSubmit;

    /**
     * 唯一编号
     */
    @TableField(value = "hashcode")
    private String hashcode;

    /**
     * 是否定时投放
     */
    @TableField(value = "is_delay")
    private Integer isDelay;

    /**
     * 是否需要审核
     */
    @TableField(value = "is_check")
    private Integer isCheck;

    /**
     * 投放时间
     */
    @TableField(value = "deliver_time")
    private LocalDateTime deliverTime;

    /**
     * 防止打扰的时间列表
     */
    @TableField(value = "anti_distur_times")
    private String antiDisturTimes;

    /**
     * 备用投放时间
     */
    @TableField(value = "option_deliver_time")
    private String optionDeliverTime;

    /**
     * 投放联系人过滤规则
     */
    @TableField(value = "filter_params")
    private String filterParams;

    /**
     * 定制接口地址
     */
    @TableField(value = "custom_api")
    private String customApi;
}